<?php 
	$item=$this->item;
	$status=$item['status'];
	$home=$item['home'];
	if(empty($item['status']))$status=0;
	if(empty($item['home']))$home=0;
	
	$name 		= $this->formText('name',$item['name'],array('class'=>'txtmedium'));
	$parent 	= $this->cmsSelect('parents',$item['parents'],$this->itemInSelectBox,array('style'=>'width:200px','size'=>10));
	$summary 	= $this->formTextarea('summary',$item['summary'],array('rows'=>'10'));									
	
	$options 	= array('Inactive','Active');
	$status 	= $this->formRadio('status',$status,null,$options, ' ');
	
	$options1 	= array('No','Yes');
	$home 		= $this->formRadio('home',$home,null,$options1, ' ');
	$order 		= $this->formText('order',10,array('class'=>'txtshort'));	
	
	$meta_description = $this->formTextarea('meta_description',$item['meta_description'],array('rows'=>'5'));
	$meta_keyword = 	$this->formTextarea('meta_keyword',$item['meta_keyword'],array('rows'=>'5'));
	
	$inputInfo 	= array('name'=>'picture');
	$imgArr 	= !empty($item['picture'])?array( FILES_URL . '/product_category/images100x100/'.$this->Item['picture']):'';
	$image 	= $this->cmsUserAvatar($inputInfo, $imgArr);
	if(!empty($item['picture'])){
	  	$urlimage   = FILES_URL . '/category/images100x100/'. $item['picture'];
	  	$imgimage  = '<span><img src="' . $urlimage . '" width="" height="40"></span>'; 
	  	$picture  = $imgimage ."<br/>" . $this->formFile('picture',array('style'=>'margin-left:173px'));	
	}else{
		$picture  = $this->formFile('picture',array('style'=>'margin-left:5px'));
	}
 	$current_stadium = $this->formHidden('current_stadium_picture',$item['picture']);  
 	
	$Input 		= array(
						array('Label'=>$this->translate('Name'),'input'=>$name,'info'=>0),
						array('Label'=>$this->translate('Picture'),'input'=>$picture,'info'=>0),
						array('Label'=>$this->translate('Parent'),'input'=>$parent,'info'=>0),
						array('Label'=>$this->translate('Summary'),'input'=>$summary	,'info'=>0),
						array('Label'=>$this->translate('Status'),'input'=>$status,'info'=>0),
						array('Label'=>$this->translate('Set Home'),'input'=>$home,'info'=>0),
						array('Label'=>$this->translate("Order"),'input'=>$order,'info'=>0),
						array('Label'=>'Meta Description','input'=>$meta_description,'info'=>0),
						array('Label'=>'Meta Keyword','input'=>$meta_keyword,'info'=>0),
						);
	if(count($this->errors)>0){
		$errors = $this->formErrors($this->errors,array('id'=>'errors'));
	}
?>
<form name="appForm" method="post" action="" enctype="multipart/form-data">

                        <?php echo $this->render('toolbar.php')?>
                        <div class="clr"></div>
                        <?php //echo $this->render('sublink.php')?>
                        
                        <?php echo $errors;?>
                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
						<div id="adminfieldset">
                             <div class="adminheader">Detail</div>								
								<?php echo $this->partialLoop('rows.php',$Input) .$current_stadium ;?>                                
							</div>
							
                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>